import axios from 'axios'

const service = axios.create({
  baseURL: 'http://47.101.133.38:224/',
  timeout: 15000
})

service.interceptors.request.use(config => {
  return config
}, error => {
  console.error(error) // for debug
  Promise.reject(error)
})

service.interceptors.response.use(
  response => {
    return response.data
  },
  error => {
    console.error('err' + error) // for debug
  }
)

export default service
